#include <iostream>
#include <opencv2/opencv.hpp>
#include "0demo.h"


int main(void)
{
	std::vector<void(*)(void)> funcManager;
	funcManager.push_back(demo_Scalar);
	funcManager.push_back(demo_disposeImageGrayscale);
	funcManager.push_back(demo_disposeImage_color);
	funcManager.push_back(demo_trackbar);
	funcManager.push_back(demo_spilt_merge);
	funcManager.push_back(demo_range);
	while (1)
	{
		system("cls");
		std::cout << "demo_Scalar\t\t\t<1>" << std::endl
			<< "demo_disposeImageGrayscale\t<2>" << std::endl
			<< "demo_disposeImage_color\t\t<3>" << std::endl
			<< "demo_trackbar\t\t\t<4>" << std::endl
			<< "demo_spilt_merge\t\t<5>" << std::endl
			<< "demo_range\t\t\t<6>" << std::endl;

		int chose;
		std::cin >> chose;
		if (chose <= 0 || chose > funcManager.size())
			continue;
		system("cls");
		funcManager[chose - 1]();
		system("pause");
	}
	
	return 0;
}
